package practice09;

public class Klass {
    private int Number;
    private Student Leader;

    public Klass(int Number) {
        this.Number = Number;
    }

    public int getNumber() {
        return Number;
    }

    public String getDisplayName() {
        return "Class "+ Number +"";
    }

    public void assignLeader(Student student) {
        if ( student.getKlass().equals(this) ){
            this.Leader = student;
        }else {
            System.out.print( "It is not one of us.\n");
        }
     
    }

    public Student getLeader() {
        return Leader;
    }

    public void appendMember(Student student) {
        student.setClass(this);
    }
}
